package com.migration.model.newdb;

import jakarta.persistence.*;
import lombok.Data;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * 偏离提示语表 实体类
 * 表名：risk_deviation_prompt
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "risk_deviation_prompt")
public class RiskDeviationPrompt implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * 主键
     * 主键
     */
    @Id
    @Column(name = "id", nullable = false)
    private Long id;
    
    /**
     * 偏离ID
     */
    @Column(name = "deviate_id", nullable = false)
    private Long deviateId;
    
    /**
     * 提示语内容
     */
    @Column(name = "prompt_content", nullable = false, length = 65535)
    private String promptContent;
    
    /**
     * 提示语描述
     */
    @Column(name = "prompt_desc", length = 255)
    private String promptDesc;
    
    /**
     * 租户主键ID
     */
    @Column(name = "tenant_id")
    private Long tenantId;
    
    /**
     * 是否删除（0、否1、是）
     * 默认值: 0
     */
    @Column(name = "is_del")
    private Boolean isDel;
    
    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private java.time.LocalDateTime createTime;
    
    /**
     * 创建者
     */
    @Column(name = "create_by", length = 32)
    private String createBy;
    
    /**
     * 更新时间
     */
    @Column(name = "update_time")
    private java.time.LocalDateTime updateTime;
    
    /**
     * 更新者
     */
    @Column(name = "update_by", length = 32)
    private String updateBy;
    
    @Override
    public String toString() {
        return "RiskDeviationPrompt{" +
            "id=" + id +
            ", deviateId=" + deviateId +
            ", promptContent=" + promptContent +
            ", promptDesc=" + promptDesc +
            ", tenantId=" + tenantId +
            ", isDel=" + isDel +
            ", createTime=" + createTime +
            ", createBy=" + createBy +
            ", updateTime=" + updateTime +
            ", updateBy=" + updateBy +
        '}';
    }
} 